package org.xserver.component.core.http;

public class HttpEnum {
	public enum ContentType {
		/** TYPE: TEXT */
		/** PLAIN TEXT */
		TEXT_PLAIN("text/plain"),
		/** HTML */
		TEXT_HTML("text/html"),

		/** TYPE: IMAGE and VIDEO */
		/** GIF */
		IMAGE_GIF("image/gif"),
		/** JPEG */
		IMAGE_JPEG("image/jpeg"),
		/** PNG */
		IMAGE_PNG("image/png"),
		/** MPEG */
		VIDEO_MPEG("video/mpeg"),

		/** TYPE: APPLICATION */
		/** JSON: application/json */
		APPLICATION_JSON("application/json"),
		/** XML */
		APPLICATION_XML("application/xhtml+xml"),
		/** OCTET-STREAM */
		APPLICATION_OCTET_STREAM("application/octet-stream"),
		/** PDF */
		APPLICATION_PDF("application/pdf"),
		/** MICROSOFT WORD */
		APPLICATION_MSWORD("application/msword"),
		/** MICROSOFT EXCEL */
		APPLICATION_MSEXCEL("application/vnd.ms-excel"),
		/** WAP 1.0 */
		APPLICATION_WAP_1_0("application/vnd.wap.xhtml+xml"),
		/** WAP 2.0 */
		APPLICATION_WAP_2_0("application/xhtml+xml"),

		/** RFC 822 */
		MESSAGE_RFC_822("message/rfc822"),
		/** HTML MAIL: multipart/alternative */
		MULTIPART_ALTERNATIVE("multipart/alternative"),

		/** FORM: application/x-www-form-urlencoded */
		APPLICATION_FORM("application/x-www-form-urlencoded"),
		/** FORM: multipart/form-data */
		MULTIPART_FORM_DATA("multipart/form-data");

		private final String contentType;

		ContentType(String contentType) {
			this.contentType = contentType;
		}

		public String getContentType() {
			return contentType;
		}
	}

	public enum Header {
		CONTENT_TYPE("Content-Type");

		private final String name;

		Header(String name) {
			this.name = name;
		}

		public String getName() {
			return name;
		}
	}
}
